import {createStore, applyMiddleware, compose} from 'redux'
import thunk from 'redux-thunk'
import logger from 'redux-logger'

import reducers from './reducers/main.js'

const store = createStore(reducers, compose(
  applyMiddleware(thunk, logger),
  window.devToolsExtension?window.devToolsExtension():f => f
))

export default store